package com.candy;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity;

@SpringBootApplication
@MapperScan("com.candy.dao")
@EnableGlobalMethodSecurity(prePostEnabled = true)
@EnableMethodSecurity//开启权限注解功能：security6的写法
public class NgdSpringSecurity20241011Application {

    public static void main(String[] args) {
        ConfigurableApplicationContext run=SpringApplication.run(NgdSpringSecurity20241011Application.class, args);
        System.out.println(run);
    }

}
